package cn.javass.dp.strategy;

/**
 * 上下文
 * Created by wanggen on 19/7/25.
 */
public class Context {
    private Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    /**
     * 上下文接口
     */
    public void contextInterface() {
        strategy.algorithmInterface();
    }
}
